home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 4
/
United Public Domain Gold 4.iso
/
scope
/
sc168.dms
/
sc168.adf
/
AsmMacros
/
AM_02
/
AllocUDS.i
< prev
next >
Wrap
Text File
|
1990-11-13
|
901b
|
28 lines
NOLIST
AllocUDS MACRO ; 19 Dec 88
*------------------------------; Start of AllocUDS macro.
; Put block size in D0.
MOVE.L #\1,D0
CLR.L D1 ; Accept any memory.
NOLIST
; Define _AbsExecBase and _LVOAllocMem if
IFND _AbsExecBase ; they have not yet been defined.
LIST
XREF _AbsExecBase
NOLIST
ENDC
IFND _LVOAllocMem
LIST
XREF _LVOAllocMem
NOLIST
ENDC
LIST
MOVE.L _AbsExecBase,A6
JSR _LVOAllocMem(A6) ; Allocate the UDS memory block.
MOVEA.L D0,A5 ; Make A5 point to the UDS memory.
OnReEntrant ; Turn on reentrant programming.
TST.L D0 ; Make the zero flag indicate failure.
*------------------------------; End of AllocUDS macro.
ENDM
LIST